﻿using LibNiconico.NiconicoApi.Internal;
using LibNiconico.NiconicoApi.Utils;
using NUnit.Framework;
using System;


[TestFixture]
public class NicoChatCommentUserTypeUnitTest
{
    [TestCase(7, NicoChatCommentUserType.Undefined)]
    [TestCase(6, NicoChatCommentUserType.Manager)]
    [TestCase(3, NicoChatCommentUserType.Owner)]
    [TestCase(2, NicoChatCommentUserType.Alert)]
    [TestCase(1, NicoChatCommentUserType.Premium)]
    [TestCase(0,NicoChatCommentUserType.General)]
    public void CodeTest(int baseCode,NicoChatCommentUserType code)
    {
        var user = NicoChatCommentUser.Craete(baseCode);

        Assert.AreEqual(baseCode, user.GetBaseUserType());
        Assert.AreEqual(code, user.UserType);

    }
}


